home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 April: Mac OS SDK / Dev.CD Apr 97 SDK1.toast / Development Kits (Disc 1) / Open Transport / Sample Code / DLPI / OT Mentat DLPI Template / DLPIHWSpecific.c < prev    next >
Encoding:
C/C++ Source or Header  |  1996-11-19  |  2.2 KB  |  64 lines  |  [TEXT/CWIE]

  1. /*
  2.     File:        DLPIHWSpecific.c
  3.  
  4.     Contains:    This file contains the DriverDescription record necessary for the DLPI 
  5.                 environment that is hardware dependent.
  6.                 This file is a demonstration of a sample TheDriverDescription which is
  7.                 a required export for PCI Card DLPI drivers.
  8.                 For PC Card 3.0, this export symbol is currently not used.  A later release of PC Cards
  9.                 for PowerBooks may use this symbol in a manner similar to that by the PCI card
  10.                 loader
  11.  
  12.     Written by:    Rich Kubota
  13.  
  14.     Copyright:    © 1994 by Apple Computer, Inc., all rights reserved.
  15.  
  16.     Change History (most recent first):
  17.  
  18.  
  19.     To Do:
  20. */
  21.  
  22. #include <Devices.h>
  23. #include <OpenTptLinks.h>
  24. #include <OpenTptPCISupport.h>
  25.  
  26. // The following information is card specific and must be changed so that your card
  27. // can be matched to your hardware
  28. #define kPCIDeviceInfoName        "\ppcivendorID,deviceID"    // pascal string,vendor ID & device id
  29. #define kModuleDeviceInfoName    "vendorID,deviceID"        // c string, vendor ID & device id
  30.  
  31. //-----------------------------------------------------------------------------------------
  32. //    Description:
  33. //        This data stucture entry point is exported through the cfm mechanism.  Information
  34. //        about the hardware that this driver works with is located in this structure.
  35. //        The following is specific for an Ethernet software driver.
  36. //-----------------------------------------------------------------------------------------
  37.  
  38. enum
  39. {
  40.     kFrameFlags = kOTFramingEthernet | kOTFramingEthernetIPX | kOTFraming8022
  41. };
  42.  
  43. DriverDescription TheDriverDescription =
  44. {
  45. // Signature Info
  46.     kTheDescriptionSignature,                    // signature always first
  47.     kInitialDriverDescriptor,                    // version second
  48.  
  49. // Type Info
  50.     kPCIDeviceInfoName,                            // Our name, module info name must match
  51.     1,0,0,0,                                    // Major, Minor, Stage, Rev
  52.  
  53. // OS Runtime Info
  54.     kDriverIsUnderExpertControl,                // Runtime Options
  55.     "\penet",                                    // should be kEnetName
  56.     0,0,0,0,0,0,0,0,                            // reserve 8 longs
  57.  
  58. // OS Service Info
  59.     1,                                            // Number of Service Categories                            
  60.     kServiceCategoryOpenTransport,                // We support the 'otan' category
  61.     OTPCIServiceType(kOTEthernetDevice,kFrameFlags,0,1),
  62.     1,0,0,0                                        // Major, Minor, Stage, Rev
  63. };
  64.